package com.mic.gae.dto;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "projects")
public class ProjectsDTO {

	private List<ProjectDTO> projects;

	public ProjectsDTO() {
		this.projects = new ArrayList<ProjectDTO>();
	}

	@XmlElement
	public List<ProjectDTO> getProjects() {
		return projects;
	}

	public void setProjects(List<ProjectDTO> projects) {
		this.projects = projects;
	}

	public boolean add(ProjectDTO projectDTO) {
		return this.projects.add(projectDTO);
	}
}
